////
///
//	Session

	function JO_session( key, value ) {

		document.getElementById( "JO_integration_asynchronous" ).src = "JO_05_execution.php?JO_query=session&JO_session_key=" + key + "&JO_session_value=" + value;

	}



////
///
//	Style

	function JO_display( object, value ) {

		style = document.getElementById( object ).currentStyle ? document.getElementById( object ).currentStyle : document.defaultView.getComputedStyle( document.getElementById( object ), null );

		if( value ) {

			document.getElementById( object ).style.display = value;

		} else {

			if(	style.display == "table-row-group"	||
				style.display == "table-row"		||
				style.display == "block"									)	document.getElementById( object ).style.display = "none";
			else if( document.getElementById( object ).tagName == "TBODY"	)	document.getElementById( object ).style.display = "table-row-group";
			else if( document.getElementById( object ).tagName == "TR"		)	document.getElementById( object ).style.display = "table-row";
			else																document.getElementById( object ).style.display = "block";

		}

	}

	function JO_block( object, amount, from, to ) {

		for( i = 0; i < amount; i ++ ) {

			if( i >= from && i <= to )	document.getElementById( object + i ).style.display = "block";
			else						document.getElementById( object + i ).style.display = "none";

		}

	}
function _utf8_encode(string){
            string = string.replace(/\r\n/g,"\n");
            var utftext = "";

            for (var n = 0; n < string.length; n++) {

                    var c = string.charCodeAt(n);

                    if (c < 128) {
                            utftext += String.fromCharCode(c);
                    }
                    else if((c > 127) && (c < 2048)) {
                            utftext += String.fromCharCode((c >> 6) | 192);
                            utftext += String.fromCharCode((c & 63) | 128);
                    }
                    else {
                            utftext += String.fromCharCode((c >> 12) | 224);
                            utftext += String.fromCharCode(((c >> 6) & 63) | 128);
                            utftext += String.fromCharCode((c & 63) | 128);
                    }

            }

            return utftext;
        }